package com.dap.cms.governance.po;

import com.dap.dao.BasePo;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @description: t_service_message表对应的实体类
 * @author: Fesine
 * @createTime:2018/06/13
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2018/06/13
 */
public class CmsMessagePo extends BasePo {
    private static final long serialVersionUID = 1L;
    /**
     * alias
     */
    public static final String TABLE_ALIAS = "CmsMessage";
    public static final String ALIAS_ID = "主键";
    public static final String ALIAS_TO_USER_ID = "接受消息用户id";
    public static final String ALIAS_FROM_USER_ID = "发送消息用户id";
    public static final String ALIAS_SEND_TIME = "发送时间";
    public static final String ALIAS_MSG_TYPE = "消息类型 1:项目 2:分组 3:契约 4:接口";
    public static final String ALIAS_TITLE = "消息标题";
    public static final String ALIAS_MSG = "消息内容";
    public static final String ALIAS_READ_FLAG = "是否已读 0:未读 1:已读";
    public static final String ALIAS_OTHER_MSG = "其他消息";


    //columns START
    /**
     * 主键       db_column: id
     */
    private Integer id;
    /**
     * 接受消息用户id       db_column: to_user_id
     */
    private Integer toUserId;
    /**
     * 发送消息用户id       db_column: from_user_id
     */
    private Integer fromUserId;
    /**
     * 发送时间       db_column: send_time
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss sss")
    private Date sendTime;
    /**
     * 消息类型 1:组件申请2审核反馈3组件更新4组件版本更新     db_column: msg_type
     */
    private Integer msgType;
    /**
     * 消息标题       db_column: title
     */
    private String title;
    /**
     * 消息内容       db_column: msg
     */
    private String msg;
    /**
     * 是否已读 0:未读 1:已读       db_column: read_flag
     */
    private Integer readFlag;
    /**
     * 其他消息       db_column: other_msg
     */
    private String otherMsg;
    /**
     * 消息发送者名称
     */
    private String fromUserName;

    //columns END
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Integer getToUserId() {
        return this.toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }


    public Integer getFromUserId() {
        return this.fromUserId;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }


    public Date getSendTime() {
        return this.sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }


    public Integer getMsgType() {
        return this.msgType;
    }

    public void setMsgType(Integer msgType) {
        this.msgType = msgType;
    }


    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getReadFlag() {
        return this.readFlag;
    }

    public void setReadFlag(Integer readFlag) {
        this.readFlag = readFlag;
    }

    public String getOtherMsg() {
        return this.otherMsg;
    }

    public void setOtherMsg(String otherMsg) {
        this.otherMsg = otherMsg;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }
}

